<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/templates/css/style.css" type="text/css" />
<link rel="stylesheet" href="/templates/css/lottery.css" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/templates/js/jquery.flip.min.js"></script>
<script type="text/javascript" src="/templates/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="/templates/js/lottery.js"></script>
<script type="text/javascript" src="/templates/js/global.js"></script>
<meta name="keywords" content="{<$assign_info[1].info>}" />
<meta name="description" content="{<$assign_info[2].info>}" />
<!--[if lt IE 10]>
<script type="text/javascript" src="/templates/js/PIE.js"></script>
<![endif]-->
<title>{<$assign_info[0].info>}</title>
</head>
<body>
	<div id="wrap">
		<div id="nav">
        	<div class="nav_menu">
            	<div class="nav_menu_left">
                	<li><a href="#" onclick="Addme()">收藏本站</a></li>
                    <script>
                    function Addme() {
    					url = document.URL;  //你自己的主页地址
    					title = "游戏扒一扒";  //你自己的主页名称
    					window.external.AddFavorite(url, title);
					}
                    </script>
                    <li>固件</li>
                    <li>新闻中心</li>
                    <li>新手教程</li>
                    <li>越狱</li>
                    <li>微博</li>
                    <li>商务合作</li>
                </div>
                <div class="nav_menu_right">
                	{<if $uid != ''>}
                	<li><a href="member.php?id={<$uid>}">查看我的积分</a></li>
                    <li><a href="member.php?id={<$uid>}">进入会员中心</a></li>
                    {</if>}
                	<li><a href="login.html" target="_blank">注册</a></li>
                    <li><a href="login.html" target="_blank">登录</a></li>
                </div>
            </div>
        </div><!--顶部-->
        <div id="header">
        	<div id="banner"><a href="/app_list/app-{<$assign_bannerapp[0].id>}.html" target="_blank" title="{<$assign_bannerapp[0].name>}"><img src="{<$assign_bannerapp[0].url>}" alt="{<$assgin_bannerapp[0].name>}" /></a></div>
            <div id="menu">
            	<div class="logo"></div>
                <div class="search">
                	<div class="search_content">
						<div class="search_main">
							<form action="search.php" method="get">
                        	<div class="search_icon"></div>
							
                        	<input class="search_text" name="keywords" type="text" value="{<$assign_skeyword[0]['name']>}" /></div>
							<input class="search_button" type="submit" value="搜索" />
                        	</form>
						
                        	
                    </div>
                    <div class="search_keywords">热门搜索：
                    	{<section name="s" loop=$assign_search>}
                        	<a href="search.php?keywords={<$assign_search[s].name>}&page=1" target="_blank"><span>{<$assign_search[s].name>} </span></a>
                        {</section>}
                    </div>
                </div>
                	<div class="menu_tab">
                    	<li class="selected"><a href="index.html" target="_blank">iPhone游戏</a></li>
                        {<section name="c" loop=$assign_artcategory>}
                        	<li><a href="article-1-{<$assign_artcategory[c].id>}.html" target="_blank">{<$assign_artcategory[c].name>}</a></li>
                        {</section>}
<!--                        <li>游戏测评</li>
                        <li>iPhone新闻</li>-->
                        <li><a href="lottery.html" target="_blank">积分兑换</a></li>
                    </div>
            </div>
            <div id="menu_list">
				<div class="listmenu">
              		<li><a href="index.html" target="_blank">首页</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=1&ca=0&kw=0&pre=" target="_blank">限时免费</a></li>
                	<li><a href="app_list.php?page=1&order=1&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">热门游戏</a></li>
                	<li><a href="app_list.php?page=1&order=0&id=0&pri=0&ca=0&kw=0&pre=" target="_blank">最新APP应用</a></li>
                	<li><a href="app_list.php?page=1&id=0&pri=0&ca=0&kw=1&pre=" target="_blank">网游</a></li>
				</div>
                <div class="app_count"><h1>共{<$assign_countapp>}个应用,今日更新{<$assign_radnom>}个应用</h1></div>
            </div>
        </div><!--头部-->
        <div id="container" class="{<$uid>}">
			
			<div id="content">
            	<div id="content_left">
					<div id="article_list">
						<div class="location"><a href="index.html"  target="_blank">首页</a>>><a href="lottery.html" target="_blank">抽奖</a></div>
						<div class="recomm">
							<div class="jieshao">推荐应用</div>
                            {<section name="p" loop=$assign_listpush>}
							<li>
								<div class="image"><a href="app_list/app-{<$assign_listpush[p].id>}.html" target="_blank"><img src="{<$assign_listpush[p].path>}" alt="{<$assign_listpush[p].name>}" width="154px" height="116px" /></a></div>
								<div class="desc"><a href="app_list/app-{<$assign_listpush[p].id>}.html" target="_blank">{<$assign_listpush[p].name>}</a></div>
							</li>
                            {</section>}
						</div>
					</div>
                </div><!--左侧-->
				<div id="content_right">
                	<div class="lottery_intro">
                    	<div class="title">抽奖说明</div>
						<span>【抽奖规则】</span>
                        <p>本站积分可用于抽奖，有机会获得Q币、iPod、手机充值卡、iPhone5、iPad3等奖励。</p>
                        <span>【积分获得方式】</span>
                        <p>1.注册成文本站会员<br />2.登录网站<br />3.下载游戏或APP软件</p>
                        <span>【抽奖规则】</span>
                        <p>本站积分可用于抽奖，有机会获得Q币、iPod、手机充值卡、iPhone5、iPad3等奖励。</p>
                    </div>
                </div><!--右侧-->
				<div id="content_lottery">                	
					<div class="lottery_main">						
						<div id="table">
                        	<dt option-value="{<$assign_arr[0]>}">1</dt>
                            <dt option-value="{<$assign_arr[1]>}">2</dt>
                            <dt option-value="{<$assign_arr[2]>}">3</dt>
                            <dt option-value="{<$assign_arr[3]>}">4</dt>
                            <dt option-value="{<$assign_arr[4]>}">5</dt>
                            <dt option-value="{<$assign_arr[5]>}">6</dt>
                            <dt option-value="{<$assign_arr[6]>}">7</dt>
                            <dt option-value="{<$assign_arr[7]>}">8</dt>
                            <dt option-value="{<$assign_arr[8]>}">9</dt>
                            <dt option-value="{<$assign_arr[9]>}">10</dt>
                            <dt option-value="{<$assign_arr[10]>}">11</dt>
                            <dt option-value="{<$assign_arr[11]>}">12</dt>
                            <dd style=" background:#fff; width:968px; height:45px; margin:2px auto;">
								<button id="button" style="display:none;">翻开全部</button>
								<p style="color:#FF0000; font-weight:bold; width:auto; height:25px; line-height:25px; float:right; margin-right:5px">抽奖概率说明</p>
                            </dd>
                        </div>
<!--                            <script>
								var id = $("#container").attr("class");
									if(id == ''){
										alert("抽奖功能只对注册用户开放，若您已是本站注册会员，请您先登录；若不是，注册吧骚年！！");
										window.location.href="login.php";									
									}else{
										$(document).ready(function(){
											$("#table").find("dt").click(function(){
												$dt = $(this);
												var id = $("#container").attr("class");
												var lottery = $dt.html();
												$dt.flip({
													direction:'lr',
													onEnd:function(){
														$("#table").find("dt").unbind("click").css("cursor","default");
														alert("111");
														$.ajax({
															url: "like_ajax.php",
															data: {lottery:lottery,id:id},
															type: "post",
															async:"true",
															success:function(data){
																$dt.addClass("select").html("<img src='"+data+"' />");
																$("#table").find("#button").show();
															}
														});
													}
												});
												alert("222");
											});
										});							
										$(document).ready(function(){
											$("#button").click(function(){
												var length = document.getElementById("table").getElementsByTagName("dt").length;
												for(var i=0;i<length;i++){
													$select = $("#table").find("dt").eq(i);
													var value = $select.attr("option-value");
													if(!$select.hasClass("select")){
														$select.flip({
															direction:'lr',
															content:"<img src='"+value+"' />",
															onEnd:function(){
																$("#table").find("#button").unbind("click").css("cursor","default");
															}
														});
													}else{
														continue;
													}
												}									
											});
										});
									}//抽奖页面AJAX
							</script>-->
					</div>
				</div><!--抽奖-->